/*
 *  Copyright (c) 2015. For Intelligent Group.
 *
 */

package com.intelligent.ispc.client.core.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * Created by Lucien.Chen on 2016/9/1.
 */
@Constraint(validatedBy = GrrGroupSettingsValidator.class) //具体的实现
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Documented
public @interface GrrGroupSettings {
    String message() default "Can not compare with targets.";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
